home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Magazine / PC2Amiga / Samba / docs / textdocs / UNIX_SECURITY.txt < prev    next >
Text File  |  2000-04-25  |  2KB  |  58 lines

  1. !==
  2. !== UNIX_SECURITY.txt for Samba release 2.0.7 26 Apr 2000
  3. !==
  4. Contributor:    John H Terpstra <jht@samba.org>
  5. Date:        July 5, 1998
  6. Status:        Current
  7.  
  8. Subject:    SETTING UNIX FILE SYSTEM SECURITY
  9. ===============================================================================
  10. The following excerpt from a bug report demonstrates the need to
  11. understand Unix file system security and to manage it correctly.
  12.  
  13. Quote:
  14. ======
  15. > We are unable to keep individual users from mapping to any other user's
  16. > home directory once they have supplied a valid password! They only need
  17. > to enter their own password. I have not found *any* method that I can
  18. > use to configure samba to enforce that only a user may map their own
  19. > home directory.
  20. > User xyzzy can map his home directory. Once mapped user xyzzy can also map
  21. > *anyone* elses home directory!
  22.  
  23. ANSWER:
  24. =======
  25. This is not a security flaw, it is by design. Samba allows
  26. users to have *exactly* the same access to the UNIX filesystem
  27. as they would if they were logged onto the UNIX box, except
  28. that it only allows such views onto the file system as are
  29. allowed by the defined shares.
  30.  
  31. This means that if your UNIX home directories are set up
  32. such that one user can happily cd into another users
  33. directory and do an ls, the UNIX security solution is to 
  34. change the UNIX file permissions on the users home directories
  35. such that the cd and ls would be denied.
  36.  
  37. Samba tries very had not to second guess the UNIX administrators
  38. security policies, and trusts the UNIX admin to set
  39. the policies and permissions he or she desires.
  40.  
  41. Samba does allow the setup you require when you have set the
  42. "only user = yes" option on the share, is that you have not set the
  43. valid users list for the share.
  44.  
  45. Note that only user works in conjunction with the users= list,
  46. so to get the behavior you require, add the line :
  47.  
  48. users = %S
  49.  
  50. this is equivalent to:
  51.  
  52. valid users = %S
  53.  
  54. to the definition of the [homes] share, as recommended in
  55. the smb.conf man page.
  56.  
  57.